package com.koron.order.workbench.homeCard.mapper;

import com.koron.order.workbench.homeCard.bean.po.HomeCardPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 小组件卡片表(HomeCard)表数据库访问层
 *
 * @author zhouj
 * @since 2022-03-18 10:19:36
 */
public interface HomeCardMapper {

    int insertOrUpdate(HomeCardPo homeCard);

    int insertOrUpdateBatch(@Param("list") List<HomeCardPo> homeCardList);

    int insert(HomeCardPo homeCard);

    int insertBatch(@Param("list") List<HomeCardPo> homeCardList);

    int update(HomeCardPo homeCard);

    int deleteById(String id);

    HomeCardPo queryById(String id);

    List<HomeCardPo> queryList(HomeCardPo homeCard);

    int deleteByAppId(@Param("appId") String appId, @Param("account") String account);

}